/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.novin.programs;

import java.awt.BorderLayout;
import java.awt.GraphicsEnvironment;
import javax.swing.*;

/**
 *
 * @author Acer
 */
public class FullScreen {
    
   
    
    public static void main(final String[] args) throws Exception {
 		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 
 		final JFrame fullscreenFrame = new JFrame();
                
                JLabel label = new JLabel("Login Screen.");
                
                
                
 		fullscreenFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
 		fullscreenFrame.setUndecorated(true);
 		fullscreenFrame.setResizable(false);
 		fullscreenFrame.add(label, BorderLayout.NORTH);
 		fullscreenFrame.validate();
 
 		GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(fullscreenFrame);
 	}
 
}
